home *** CD-ROM | disk | FTP | other *** search
- Path: news.erg.cuhk.hk!chancw
- From: chancw@cs.cuhk.hk (CHAN Chi Wai)
- Newsgroups: comp.lang.c
- Subject: Re: STRING PROBLEM
- Date: 26 Mar 1996 11:36:22 GMT
- Organization: Engineering Faculty CUHK
- Message-ID: <4j8krm$amj@eng_ser1.erg.cuhk.hk>
- References: <NEWTNews.8261.827811321.us007425@interramp.com>
- NNTP-Posting-Host: dec39.cs.cuhk.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
- kevin (us007425@interramp.com) wrote:
-
- > Can anyone tell me if you can have an array of strings, such as:
-
- > example[26][100];
-
- > and if so, how do assign string to the various members. I've tried
- > things like:
-
- > strcpy(example[i][j],buffer);
-
- I think that it should be :
-
- strcpy(example[i], buffer);
-
- and the length of the string in buffer should not greater than 99.
-
- --
- Tue Mar 26 19:20:03 HKT 1996
-